<div id="solvay_content2010">
 <{include file="alumni/public/left_menu.tpl"}>
  <div id="content2010_right">
  	<div class="ctn_contentright2010">
      <div class="content_tab">
        <div class="title_contenttab">
          <table cellpadding="0" cellspacing="0" border="0" width="100%">
              <tr>
                  <td align="left">Registration</td>
                </tr>
            </table>
       </div>
       <div class="ctn_texttab">
       <form name="frmSignUp" id="frmSignUp" action="" method="post" onsubmit="return checkFrmSignUp(this)">
        <table cellpadding="0" cellspacing="0" border="0" width="100%">
        <tr>
          <td colspan="2" width="190" class="text_13" align="center">
            <{$STR_MSG}>
          </td>
        </tr>
        <tr>
          <td width="190" class="text_13">Username <span style="color:#FF0000">*</span></td>
            <td class="text_13"><input type="text" name="username" id="username" class="input2010_300" value="<{$arrForm.username}>"  /></td>
        </tr>
        <tr>
          <td colspan="2" height="10"></td>
        </tr>
        <tr>
          <td width="190" class="text_13_bg">Password <span style="color:#FF0000">*</span></td>
            <td class="text_13_bg"><input type="password" name="password" id="password" class="input2010_300"  /></td>
        </tr>
        <tr>
          <td colspan="2" height="10"></td>
        </tr>
        <tr>
          <td width="190" class="text_13">Confirm password <span style="color:#FF0000">*</span></td>
            <td class="text_13"><input type="password" name="confirm_password" id="confirm_password" class="input2010_300"  /></td>
        </tr>
        <tr>
          <td colspan="2" height="10"></td>
        </tr>
        <tr>
          <td width="190" class="text_13_bg">Full name <span style="color:#FF0000">*</span></td>
            <td class="text_13_bg"><input type="text" name="full_name" id="full_name" class="input2010_300" value="<{$arrForm.full_name}>" /></td>
        </tr>
        <tr>
          <td colspan="2" height="10"></td>
        </tr>
        <tr>
          <td width="190" class="text_13">Gender</td>
            <td class="text_13">
              <select name="gender" id="gender" class="select2010_300">
                  <option value="0"<{if $arrForm.gender eq 0}> selected="selected"<{/if}>>Male</option>
                    <option value="1"<{if $arrForm.gender eq 1}> selected="selected"<{/if}>>Female</option>
                </select>
            </td>
        </tr>
        <tr>
          <td colspan="2" height="10"></td>
        </tr>
        <tr>
          <td width="190" class="text_13_bg">Date of birth</td>
            <td class="text_13_bg">
              <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                  <td align="left">
                  <select name="day_dob" id="day_dob" class="select2010_95">
                    <option value="00"> -- Day -- </option>
                    <{section name=foo start=1 loop=32 step=1}>
                      <option<{if $arrForm.day_dob eq $smarty.section.foo.index}> selected="selected"<{/if}> value="<{$smarty.section.foo.index}>">&nbsp;&nbsp;&nbsp;<{$smarty.section.foo.index}></option>
                    <{/section}>  
                  </select>
                </td>
                <td width="5"></td>
                  <td align="left">
                  	<select name="month_dob" id="month_dob" class="select2010_95">
                      <option value="00"> -- Month -- </option>
                      <{section name=foo start=1 loop=13 step=1}>
                        <option<{if $arrForm.month_dob eq $smarty.section.foo.index}> selected="selected"<{/if}> value="<{$smarty.section.foo.index}>">&nbsp;&nbsp;&nbsp;<{$smarty.section.foo.index}></option>
                      <{/section}>  
                    </select>
                  </td>
                <td width="5"></td>
                <td align="left">
                  <select name="year_dob" id="year_dob" class="select2010_95">
                    <option value="0000"> -- Year -- </option>
                    <{section name=foo start=1940 loop=2010 step=1}>
                      <option<{if $arrForm.year_dob eq $smarty.section.foo.index}> selected="selected"<{/if}> value="<{$smarty.section.foo.index}>">&nbsp;&nbsp;&nbsp;<{$smarty.section.foo.index}></option>
                    <{/section}>  
                  </select>
                </td>
              </tr>
              
            </table>
            </td>
        </tr>
        <tr>
            <td width="190" class="text_13">Intake</td>
              <td class="text_13">
                <select name="intake_id" id="intake_id" class="select2010_300">
                	<option value=""> -- Choose -- </option>
                 	<{foreach name=nameIntake key=keyIntake item=itemIntake from=$arrIntake}>
                  	<option value="<{$itemIntake.id}>">&nbsp;&nbsp;&nbsp;<{$itemIntake.intake_name}></option>
                  <{/foreach}>
                 </select>
              </td>
          </tr>
          <tr>
            <td colspan="2" height="10"></td>
          </tr>
          <tr>
            <td width="190" class="text_13_bg">Number phone</td>
              <td class="text_13_bg">
                <input type="text" name="private_tel" id="private_tel" class="input2010_300" value="<{$arrForm.private_tel}>" />
              </td>
          </tr>
          <tr>
            <td colspan="2" height="10"></td>
          </tr>
          <tr>
            <td width="190" class="text_13">Email</td>
              <td class="text_13">
                <input type="text" name="private_email" id="private_email" class="input2010_300" value="<{$arrForm.private_email}>" />
              </td>
          </tr>
          <tr>
            <td colspan="2" height="10"></td>
          </tr>
        <tr>
          <td colspan="2" height="10"></td>
        </tr>
        <tr>
          <td colspan="2" width="190" class="text_13" align="center">
            <input type="submit" name="" class="btn_login2010" value="Sign Up" />
          </td>
        </tr>
        </table>
       </form>
       </div>
          
      </div>
  	</div>
  </div>
</div>
<script type="text/javascript">
	function checkFrmSignUp(p_objForm)
	{
		if ( trim(p_objForm.username.value) == "")
		{
			alert("Please input username.");
			p_objForm.username.focus();
			return false;
		}
		if ( !CheckUsernameChar(trim(p_objForm.username.value)) )
		{
			alert("Username invalid.");
			p_objForm.username.focus();
			return false;
		}
		if ( trim(p_objForm.password.value) == "")
		{
			alert("Please input password.");
			p_objForm.password.focus();
			return false;
		}
		if ( !CheckCharPassword(trim(p_objForm.password.value)) )
		{
			alert("Password invalid.");
			p_objForm.password.focus();
			return false;
		}
		if ( trim(p_objForm.password.value) != trim(p_objForm.confirm_password.value) )
		{
			alert("Confirm password not match!");
			p_objForm.confirm_password.focus();
			return false;
		}
		if ( trim(p_objForm.full_name.value) == "")
		{
			alert("Please input full name.");
			p_objForm.full_name.focus();
			return false;
		}
	}
</script>